package com.zhou.system.management.controller.view;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author xianfeng
 * @date 2023/5/16 22:28
 */
@Controller
public class ViewController {

    @GetMapping("/index")
    public String test2(Model model) {
        return "index";
    }

    @GetMapping("/page/welcome-1.html")
    public String welcome1(Model model) {
        return "page/welcome-1";
    }

    @GetMapping("/page/welcome-2.html")
    public String welcome2(Model model) {
        return "page/welcome-2";
    }

    @GetMapping("/page/welcome-3.html")
    public String welcome3(Model model) {
        return "page/welcome-3";
    }

    /**
     * /page/user-setting.html
     */

    @GetMapping("/page/user-setting.html")
    public String userSetting(Model model) {
        return "page/user-setting";
    }

    @GetMapping("/page/user-password.html")
    public String userPassword(Model model) {
        return "page/user-password";
    }

    @GetMapping("/page/menu.html")
    public String menu(Model model) {
        return "page/menu";
    }

    @GetMapping("/page/setting.html")
    public String setting(Model model) {
        return "page/setting";
    }

    @GetMapping("/page/table.html")
    public String table(Model model) {
        return "page/table";
    }

    @GetMapping("/page/form.html")
    public String form(Model model) {
        return "page/form";
    }

    @GetMapping("/page/form-step.html")
    public String form_step(Model model) {
        return "page/form-step";
    }

    @GetMapping("/page/login-1.html")
    public String login1(Model model) {
        return "page/login-1";
    }

    @GetMapping("/page/login-2.html")
    public String login2(Model model) {
        return "page/login-2";
    }

    @GetMapping("/page/login-3.html")
    public String login3(Model model) {
        return "page/login-3";
    }

    @GetMapping("/page/404.html")
    public String notfount(Model model) {
        return "page/404";
    }

    @GetMapping("/page/button.html")
    public String button(Model model) {
        return "page/button";
    }

    @GetMapping("/page/layer.html")
    public String layer(Model model) {
        return "page/layer";
    }

    @GetMapping("/page/icon.html")
    public String icon(Model model) {
        return "page/icon";
    }

    @GetMapping("/page/icon-picker.html")
    public String iconPicker(Model model) {
        return "page/icon-picker";
    }

    @GetMapping("/page/color-select.html")
    public String colorSelect(Model model) {
        return "page/color-select";
    }

    @GetMapping("/page/table-select.html")
    public String tableSelect(Model model) {
        return "page/table-select";
    }

    @GetMapping("/page/upload.html")
    public String upload(Model model) {
        return "page/upload";
    }

    @GetMapping("/page/editor.html")
    public String editor(Model model) {
        return "page/editor";
    }

    @GetMapping("/page/error.html")
    public String error(Model model) {
        return "page/error";
    }

    @GetMapping("/page/area.html")
    public String area(Model model) {
        return "page/area";
    }


    @GetMapping("/page/table/add.html")
    public String tableAdd(Model model) {
        return "page/table/add";
    }

    @GetMapping("/page/table/edit.html")
    public String tableEdit(Model model) {
        return "page/table/edit";
    }

    @GetMapping("/page/menu/add.html")
    public String menuAdd(Model model) {
        return "page/menu/add";
    }

    @GetMapping("/page/menu/edit.html")
    public String menuEdit(Model model) {
        return "page/menu/edit";
    }

    @GetMapping("/page/user.html")
    public String user(Model model) {
        return "page/user";
    }

    @GetMapping("/page/user/add.html")
    public String userAdd(Model model) {
        return "page/user/add";
    }

    @GetMapping("/page/user/edit.html")
    public String userEdit(Model model) {
        return "page/user/edit";
    }

    @GetMapping("/page/user/addRole.html")
    public String userAddRole(Model model) {
        return "page/user/addRole";
    }

    @GetMapping("/page/dept/main.html")
    public String deptMain(Model model) {
        return "page/dept/main";
    }

    @GetMapping("/page/dept/add.html")
    public String deptAdd(Model model) {
        return "page/dept/add";
    }

    @GetMapping("/page/dept/edit.html")
    public String deptEdit(Model model) {
        return "page/dept/edit";
    }

    @GetMapping("/page/role/main.html")
    public String roleMain(Model model) {
        return "page/role/main";
    }

    @GetMapping("/page/role/add.html")
    public String roleAdd(Model model) {
        return "page/role/add";
    }

    @GetMapping("/page/role/edit.html")
    public String roleEdit(Model model) {
        return "page/role/edit";
    }

    @GetMapping("/page/post/main.html")
    public String postMain(Model model) {
        return "page/post/main";
    }

    @GetMapping("/page/systemlog/main.html")
    public String systemlogMain(Model model) {
        return "page/systemlog/main";
    }


}
